package com.linkedList;

public class Test {
    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();
        list.addFirst("1");
        list.addFirst("2");
        list.addFirst("3");
        System.out.println(list);
        list.removeFirst();
        list.removeFirst();
        System.out.println(list);

    }
}
